/**
 * 
 */
package com.iwords.service;

import com.iwords.service.object.AccountEntity;
import java.util.List;

import javax.ejb.Remote;


/**
 * @author    	huangbaichuan 
 * @time      	2011-8-14    
 * @description	老師-service  
 */
@Remote
public interface AccountService {

	void create(AccountEntity entity);

	void edit(AccountEntity entity);

	void remove(AccountEntity entity);

	AccountEntity find(Object id);

	List<AccountEntity> findAll();
        
        int count();
        
        /**
         * 根据alipay的回调 更新用户帐户表，实现用户过期时间的更新 默认延长1年
         * @return 
         */
        boolean updateAccountForAlipay(AccountEntity account);
        
          /**
         * 根据userid获取该用户的流水详情
         * @return 
         */
        public List<AccountEntity> getAccountListByUserId(Long userId);
}
